package com.koo.modules.purchase.entity;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.koo.common.base.entity.CommonEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;

/**
 * @author charlin
 * @email 136137465@qq.com
 * @date 2023-03-15 14:06:00
 */
@Data
@ApiModel("")
@TableName("purchases_back_order_detail")
public class PurchasesBackOrderDetailEntity extends CommonEntity {
    private static final long serialVersionUID = 1L;

    @ExcelIgnore
    @TableId
    private Long backDetailId;

    @ExcelIgnore
    @ApiModelProperty(value = "入库单id")
    private Long backId;

    @ColumnWidth(11)
    @ExcelProperty("入库单")
    @ApiModelProperty(value = "入库单")
    private String backNo;

    @ExcelIgnore
    @ApiModelProperty(value = "库存id")
    private Long stockId;

    @ExcelIgnore
    @ApiModelProperty(value = "商品类别id")
    private Long categoryId;

    @ExcelIgnore
    @ApiModelProperty(value = "产品id")
    private Long productId;

    @ColumnWidth(11)
    @ExcelProperty("产品编码")
    @ApiModelProperty(value = "产品编码")
    private String productCode;

    @ColumnWidth(11)
    @ExcelProperty("产品名称")
    @ApiModelProperty(value = "产品名称")
    private String productName;

    @ColumnWidth(11)
    @ExcelProperty("条形码")
    @ApiModelProperty(value = "条形码")
    private String barCode;

    @ColumnWidth(11)
    @ExcelProperty("通用名称")
    @ApiModelProperty(value = "通用名称")
    private String genericName;

    @ColumnWidth(11)
    @ExcelProperty("规格")
    @ApiModelProperty(value = "规格")
    private String standard;

    @ColumnWidth(11)
    @ExcelProperty("单位")
    @ApiModelProperty(value = "单位")
    private String unit;

    @ColumnWidth(11)
    @ExcelProperty("产地")
    @ApiModelProperty(value = "产地")
    private String producingArea;

    @ColumnWidth(11)
    @ExcelProperty("生产单位")
    @ApiModelProperty(value = "生产单位")
    private String produceFactory;

    @ColumnWidth(11)
    @ExcelProperty("批准文号")
    @ApiModelProperty(value = "批准文号")
    private String approvalNo;

    @ColumnWidth(11)
    @ExcelProperty("剂型")
    @ApiModelProperty(value = "剂型")
    private String dosageForm;

    @ColumnWidth(11)
    @ExcelProperty("批号")
    @ApiModelProperty(value = "批号")
    private String batchNo;

    @ColumnWidth(11)
    @ExcelProperty("生产日期")
    @ApiModelProperty(value = "生产日期")
    private String produceDate;

    @ColumnWidth(11)
    @ExcelProperty("有效期")
    @ApiModelProperty(value = "有效期")
    private String expiryDate;

    @ColumnWidth(11)
    @ExcelProperty("当前库存")
    @ApiModelProperty(value = "当前库存")
    private BigDecimal stockCount;

    @ColumnWidth(11)
    @ExcelProperty("采购金额")
    @ApiModelProperty(value = "采购金额")
    private BigDecimal purchaseCount;

    @ColumnWidth(11)
    @ExcelProperty("退货数量")
    @ApiModelProperty(value = "退货数量")
    private BigDecimal backCount;

    @ColumnWidth(11)
    @ExcelProperty("采购价格")
    @ApiModelProperty(value = "采购价格")
    private BigDecimal purchasePrice;

    @ColumnWidth(11)
    @ExcelProperty("采购金额")
    @ApiModelProperty(value = "采购金额")
    private BigDecimal purchaseFee;

    @ColumnWidth(11)
    @ExcelProperty("f4流水号")
    @ApiModelProperty(value = "f4流水号")
    private String keyNo;

    @ColumnWidth(11)
    @ExcelProperty("上次进价")
    @ApiModelProperty(value = "上次进价")
    private BigDecimal lastPurchasePrice;

    @ColumnWidth(11)
    @ExcelProperty("原零售价")
    @ApiModelProperty(value = "原零售价")
    private BigDecimal retailPrice;

    @ColumnWidth(11)
    @ExcelProperty("零售价")
    @ApiModelProperty(value = "零售价")
    private BigDecimal newRetailPrice;

    @ColumnWidth(11)
    @ExcelProperty("原会员价")
    @ApiModelProperty(value = "原会员价")
    private BigDecimal memberPrice;

    @ColumnWidth(11)
    @ExcelProperty("会员价")
    @ApiModelProperty(value = "会员价")
    private BigDecimal newMemberPrice;


}
